import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import Hello from '@/components/Hello'
import HW_I from '@/components/HelloWorld/index'
import HW_D from '@/components/HelloWorld/Demo'
import HW_H from '@/components/HelloWorld/Hello'
import HW_H2 from '@/components/HelloWorld/Hello2'
import HW_H3 from '@/components/HelloWorld/Hello3'
import Favicon from '@/components/HelloWorld/Favicon'
import HelloWorld from '@/components/HelloWorld/HelloWorld'
import HelloWorldDemo from '@/components/HelloWorldDemo'
import VR_C from '@/components/HelloWorld/VueResourceComponents'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/HelloWorld',
      name: 'HW_I',
      component: HW_I,
      children: [
        {
          path: '/',
          name: 'HelloWorld',
          component: HelloWorld
        },
        {
          path: 'Hello',
          name: 'HW_H',
          component: HW_H
        },
        {
          path: 'Hello2',
          name: 'HW_H2',
          component: HW_H2
        },
        {
          path: 'Demo',
          name: 'HW_D',
          component: HW_D
        },
        {
          path: 'Favicon',
          name: 'Favicon',
          component: Favicon
        },
        {
          path: 'VR_C',
          name: 'VR_C',
          component: VR_C
        }
      ]
    },
    {
      path: '/HelloWorldDemo',
      name: 'HelloWorldDemo',
      component: HelloWorldDemo
    },
    {
      path: '/Hello',
      name: 'Hello',
      component: Hello
    },
    {
      path: '/HelloWorld/Hello3',
      name: 'HW_H3',
      component: HW_H3
    }
  ]
})
